package com.testpage.cn.testpage.controller;

import com.github.pagehelper.PageInfo;
import com.testpage.cn.testpage.entity.User;
import com.testpage.cn.testpage.param.UserParam;
import com.testpage.cn.testpage.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;

    @PostMapping("/select")
    PageInfo<User> select(@RequestBody UserParam userParam){
        return userService.select(userParam);
    }
}
